package com.lantosec.hmrp.modules.eval.vo;

import java.math.BigDecimal;

import com.lantosec.hmrp.modules.eval.entity.EvalTaskItem;
import com.lantosec.hmrp.core.mvc.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 任务考评项目 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-03-30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="EvalTaskItem对象", description="任务考评项目")
public class EvalTaskItemVO extends BaseVO<EvalTaskItem> {
    private static final long serialVersionUID = 1L;


    public EvalTaskItemVO(EvalTaskItem entity){
        this.evalTaskItemId = entity.getEvalTaskItemId();
        this.evalTaskId = entity.getEvalTaskId();
        this.evalItemId = entity.getEvalItemId();
        this.rewardOrientation = entity.getRewardOrientation();
        this.rewardType = entity.getRewardType();
        this.rewardStandard = entity.getRewardStandard();
        this.rewardUpLimit = entity.getRewardUpLimit();
        this.rewardLowLimit = entity.getRewardLowLimit();
    }

    @Override
    public EvalTaskItem convertToEntity(){
        return new EvalTaskItem(this);
    }


    @ApiModelProperty(value = "考评任务明细ID")
    private Integer evalTaskItemId;

    @ApiModelProperty(value = "考评任务ID")
    private Integer evalTaskId;

    @ApiModelProperty(value = "考评项目ID")
    private String evalItemId;

    @ApiModelProperty(value = "考评奖惩方向(1分2钱)")
    private Integer rewardOrientation;

    @ApiModelProperty(value = "考评奖惩形式(1奖2惩3奖与惩)")
    private Integer rewardType;

    @ApiModelProperty(value = "考评奖惩标准(项目分值)")
    private BigDecimal rewardStandard;

    @ApiModelProperty(value = "考评奖惩上限")
    private BigDecimal rewardUpLimit;

    @ApiModelProperty(value = "考评奖惩下限")
    private BigDecimal rewardLowLimit;


}
